<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: cjqt.widgets.QAction Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.3 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>cjqt</b></li><li class="navelem"><b>widgets</b></li><li class="navelem"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html">QAction</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classcjqt_1_1widgets_1_1_q_action-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">cjqt.widgets.QAction Class Reference</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7b7a40bcbe4b6a9bab52e60ae078d62e"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#a7b7a40bcbe4b6a9bab52e60ae078d62e">init</a> ()</td></tr>
<tr class="separator:a7b7a40bcbe4b6a9bab52e60ae078d62e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a420ec807e74d0e687745d4e01dc71039"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#a420ec807e74d0e687745d4e01dc71039">init</a> (<a class="el" href="classcjqt_1_1widgets_1_1_q_widget.html">QWidget</a> parent)</td></tr>
<tr class="separator:a420ec807e74d0e687745d4e01dc71039"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab78e66dd1fcb181181b9e838a805369b"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#ab78e66dd1fcb181181b9e838a805369b">setStatusTip</a> (String tip)</td></tr>
<tr class="separator:ab78e66dd1fcb181181b9e838a805369b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cce04164e2ced1b1691bb3600adbcec"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#a3cce04164e2ced1b1691bb3600adbcec">setText</a> (String <a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#aa85c8438eb39e1fb59774e27c22fac67">text</a>)</td></tr>
<tr class="separator:a3cce04164e2ced1b1691bb3600adbcec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa85c8438eb39e1fb59774e27c22fac67"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#aa85c8438eb39e1fb59774e27c22fac67">text</a> ():String</td></tr>
<tr class="separator:aa85c8438eb39e1fb59774e27c22fac67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5866f5d968beb53d981618e4ccf90e03"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#a5866f5d968beb53d981618e4ccf90e03">setIcon</a> (QIcon <a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#add4c1b18eb052003399eea2607219d4d">icon</a>)</td></tr>
<tr class="separator:a5866f5d968beb53d981618e4ccf90e03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add4c1b18eb052003399eea2607219d4d"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#add4c1b18eb052003399eea2607219d4d">icon</a> ():QIcon</td></tr>
<tr class="separator:add4c1b18eb052003399eea2607219d4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9ab87c2bbdb347751461d72d9ea05f9"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#af9ab87c2bbdb347751461d72d9ea05f9">setCheckable</a> (Bool checkable)</td></tr>
<tr class="separator:af9ab87c2bbdb347751461d72d9ea05f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94d0dcafcd37b96a71f87fd0f26e2a02"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#a94d0dcafcd37b96a71f87fd0f26e2a02">isCheckable</a> ():Bool</td></tr>
<tr class="separator:a94d0dcafcd37b96a71f87fd0f26e2a02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2445719af0f2c6ef86bf975728cfa740"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#a2445719af0f2c6ef86bf975728cfa740">setChecked</a> (Bool checked)</td></tr>
<tr class="separator:a2445719af0f2c6ef86bf975728cfa740"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7307b908290606e1fee8b5f213aee3f"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#ac7307b908290606e1fee8b5f213aee3f">isChecked</a> ():Bool</td></tr>
<tr class="separator:ac7307b908290606e1fee8b5f213aee3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d40dcf9298dc5a703f3faced7afadba"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#a0d40dcf9298dc5a703f3faced7afadba">delete</a> ()</td></tr>
<tr class="separator:a0d40dcf9298dc5a703f3faced7afadba"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ada63b048604453ec3dbd40deae1bc242"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#ada63b048604453ec3dbd40deae1bc242">let ptr</a> : Int64</td></tr>
<tr class="separator:ada63b048604453ec3dbd40deae1bc242"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a1a26366881d9bc1dab4a633ba652b0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#a6a1a26366881d9bc1dab4a633ba652b0">let triggered</a> : <a class="el" href="classcjqt_1_1widgets_1_1_q_action_triggered_signal.html">QActionTriggeredSignal</a>&lt;Bool&gt;</td></tr>
<tr class="separator:a6a1a26366881d9bc1dab4a633ba652b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Qt动作类 </p><dl class="section author"><dt>Author</dt><dd>wathinst </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7b7a40bcbe4b6a9bab52e60ae078d62e" name="a7b7a40bcbe4b6a9bab52e60ae078d62e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b7a40bcbe4b6a9bab52e60ae078d62e">&#9670;&nbsp;</a></span>init() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public cjqt.widgets.QAction.init </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >默认构造函数 </p>

</div>
</div>
<a id="a420ec807e74d0e687745d4e01dc71039" name="a420ec807e74d0e687745d4e01dc71039"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a420ec807e74d0e687745d4e01dc71039">&#9670;&nbsp;</a></span>init() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public cjqt.widgets.QAction.init </td>
          <td>(</td>
          <td class="paramname"><em>parent</em>:&#160;</td>
          <td class="paramtype">QWidget</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >默认构造函数</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>QWidget父类 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a0d40dcf9298dc5a703f3faced7afadba" name="a0d40dcf9298dc5a703f3faced7afadba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d40dcf9298dc5a703f3faced7afadba">&#9670;&nbsp;</a></span>delete()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func cjqt.widgets.QAction.delete </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >释放内存 </p>

</div>
</div>
<a id="add4c1b18eb052003399eea2607219d4d" name="add4c1b18eb052003399eea2607219d4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add4c1b18eb052003399eea2607219d4d">&#9670;&nbsp;</a></span>icon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func cjqt.widgets.QAction.icon </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: QIcon </td>
        </tr>
      </table>
</div><div class="memdoc">
<p >获取动作图标</p>
<dl class="section return"><dt>Returns</dt><dd>图标 </dd></dl>

</div>
</div>
<a id="a94d0dcafcd37b96a71f87fd0f26e2a02" name="a94d0dcafcd37b96a71f87fd0f26e2a02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94d0dcafcd37b96a71f87fd0f26e2a02">&#9670;&nbsp;</a></span>isCheckable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func cjqt.widgets.QAction.isCheckable </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Bool </td>
        </tr>
      </table>
</div><div class="memdoc">
<p >获取可检测的状态</p>
<dl class="section return"><dt>Returns</dt><dd>是否可检测 </dd></dl>

</div>
</div>
<a id="ac7307b908290606e1fee8b5f213aee3f" name="ac7307b908290606e1fee8b5f213aee3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7307b908290606e1fee8b5f213aee3f">&#9670;&nbsp;</a></span>isChecked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func cjqt.widgets.QAction.isChecked </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: Bool </td>
        </tr>
      </table>
</div><div class="memdoc">
<p >获取选中状态</p>
<dl class="section return"><dt>Returns</dt><dd>是否选中 </dd></dl>

</div>
</div>
<a id="af9ab87c2bbdb347751461d72d9ea05f9" name="af9ab87c2bbdb347751461d72d9ea05f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9ab87c2bbdb347751461d72d9ea05f9">&#9670;&nbsp;</a></span>setCheckable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func cjqt.widgets.QAction.setCheckable </td>
          <td>(</td>
          <td class="paramname"><em>checkable</em>:&#160;</td>
          <td class="paramtype">Bool</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >设置可检测的</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">checkable</td><td>是否可检测 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2445719af0f2c6ef86bf975728cfa740" name="a2445719af0f2c6ef86bf975728cfa740"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2445719af0f2c6ef86bf975728cfa740">&#9670;&nbsp;</a></span>setChecked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func cjqt.widgets.QAction.setChecked </td>
          <td>(</td>
          <td class="paramname"><em>checked</em>:&#160;</td>
          <td class="paramtype">Bool</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >设置选中状态</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">checked</td><td>是否选中 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5866f5d968beb53d981618e4ccf90e03" name="a5866f5d968beb53d981618e4ccf90e03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5866f5d968beb53d981618e4ccf90e03">&#9670;&nbsp;</a></span>setIcon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func cjqt.widgets.QAction.setIcon </td>
          <td>(</td>
          <td class="paramname"><em><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#add4c1b18eb052003399eea2607219d4d">icon</a></em>:&#160;</td>
          <td class="paramtype">QIcon</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >设置动作图标</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">icon</td><td>图标 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab78e66dd1fcb181181b9e838a805369b" name="ab78e66dd1fcb181181b9e838a805369b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab78e66dd1fcb181181b9e838a805369b">&#9670;&nbsp;</a></span>setStatusTip()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func cjqt.widgets.QAction.setStatusTip </td>
          <td>(</td>
          <td class="paramname"><em>tip</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >设置状态提示</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tip</td><td>提示文本 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3cce04164e2ced1b1691bb3600adbcec" name="a3cce04164e2ced1b1691bb3600adbcec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cce04164e2ced1b1691bb3600adbcec">&#9670;&nbsp;</a></span>setText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func cjqt.widgets.QAction.setText </td>
          <td>(</td>
          <td class="paramname"><em><a class="el" href="classcjqt_1_1widgets_1_1_q_action.html#aa85c8438eb39e1fb59774e27c22fac67">text</a></em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p >设置动作文本</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>文本 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa85c8438eb39e1fb59774e27c22fac67" name="aa85c8438eb39e1fb59774e27c22fac67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa85c8438eb39e1fb59774e27c22fac67">&#9670;&nbsp;</a></span>text()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func cjqt.widgets.QAction.text </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td>: String </td>
        </tr>
      </table>
</div><div class="memdoc">
<p >获取动作文本</p>
<dl class="section return"><dt>Returns</dt><dd>文本 </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ada63b048604453ec3dbd40deae1bc242" name="ada63b048604453ec3dbd40deae1bc242"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada63b048604453ec3dbd40deae1bc242">&#9670;&nbsp;</a></span>let ptr</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cjqt.widgets.QAction.let ptr : Int64</td>
        </tr>
      </table>
</div><div class="memdoc">
<p >QAction类对象指针 </p>

</div>
</div>
<a id="a6a1a26366881d9bc1dab4a633ba652b0" name="a6a1a26366881d9bc1dab4a633ba652b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a1a26366881d9bc1dab4a633ba652b0">&#9670;&nbsp;</a></span>let triggered</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cjqt.widgets.QAction.let triggered : <a class="el" href="classcjqt_1_1widgets_1_1_q_action_triggered_signal.html">QActionTriggeredSignal</a>&lt;Bool&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p >动作触发信号 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/widgets/<a class="el" href="action_8cj.html">action.cj</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
